#encoding:utf-8
import os
SECRET_KEY = os.urandom(24)

debug=True

# 数据库配置
HOSTNAME = '127.0.0.1'
PORT     = '3306'
USERNAME = 'root'
PASSWORD = 'amwfjefn'
DATABASE = 'czbbs'

DB_URI = 'mysql+pymysql://%s:%s@%s:%s/%s?charset=utf8' % (
    USERNAME,PASSWORD,HOSTNAME,PORT,DATABASE
)

SQLALCHEMY_DATABASE_URI = DB_URI
SQLALCHEMY_TRACK_MODIFICATIONS = False

CMS_USER_ID = 'iamsupy'
FRONT_USER_ID = 'fajfdajffq12d5saf'

# 邮箱服务配置
# MAIL_USE_TLS:端口号：587
# MAIL_USE_SSL:端口号：465
# QQ邮箱不支持非加密码方式发送邮件
# 发送者邮箱的服务器地址

MAIL_SERVER = 'smtp.qq.com'
MAIL_PORT   = '587'
MAIL_USE_TLS = True
# MAIL_USE_SSL
MAIL_USERNAME = '413443864@qq.com'
MAIL_PASSWORD = 'wcpbewemlpwkcajd'
MAIL_DEFAULT_SENDER = '413443864@qq.com'

# 阿里大于配置
ALIDAYU_APP_KEY = '23709557'
ALIDAYU_APP_SECRET = 'd9e430e0a96e21c92adacb522a905c4b'
ALIDAYU_SIGN_NAME = '小饭桌应用'
ALIDAYU_TEMPLATE_CODE = 'SMS_68465012'